Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add branches method for AST::CaseMatchNode #192

Merged

Conversation

koic
Copy link
Member

@koic koic commented Jul 11, 2021

This PR adds branches method for AST::CaseMatchNode.

This makes a method similar to AST::CaseNode#branches available in AST::CaseMatchNode.
After this, I will be developing with this API on RuboCop.

@koic
Copy link
Member Author

koic commented Jul 14, 2021

@marcandre I'd like to use this PR's feature in rubocop/rubocop#9930. Can you review, merge, and release?

@koic koic force-pushed the add_branches_method_for_ast_case_match_node branch from 5926ade to 72605ab Compare July 14, 2021 05:57
This PR adds `branches` method for `AST::CaseMatchNode`.

This makes a method similar to `AST::CaseNode#branches` available
in `AST::CaseMatchNode`.
After this, I will be developing with this API on RuboCop.
@koic koic force-pushed the add_branches_method_for_ast_case_match_node branch from 72605ab to 5e917b1 Compare July 14, 2021 06:06
@marcandre marcandre merged commit 0cbbac4 into rubocop:master Jul 14, 2021
@marcandre
Copy link
Contributor

Thanks @koic!
Merged and released as 1.8.0 🚀

@koic koic deleted the add_branches_method_for_ast_case_match_node branch July 14, 2021 17:25
@koic
Copy link
Member Author

koic commented Jul 14, 2021

@marcandre Thank you always!

koic added a commit to koic/rubocop that referenced this pull request Jul 14, 2021
This PR supports Ruby 2.7's pattern matching for `Lint/DuplicateBranch`.

And this PR uses rubocop/rubocop-ast#192 feature,
so it requires RuboCop AST 1.8.0 or higher.
bbatsov pushed a commit to rubocop/rubocop that referenced this pull request Jul 19, 2021
This PR supports Ruby 2.7's pattern matching for `Lint/DuplicateBranch`.

And this PR uses rubocop/rubocop-ast#192 feature,
so it requires RuboCop AST 1.8.0 or higher.
thearjunmdas pushed a commit to thearjunmdas/rubocop that referenced this pull request Aug 20, 2021
This PR supports Ruby 2.7's pattern matching for `Lint/DuplicateBranch`.

And this PR uses rubocop/rubocop-ast#192 feature,
so it requires RuboCop AST 1.8.0 or higher.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants